package com.qkl.common.publics.dto;

import lombok.Data;

/**
 * 微信返回
 */
@Data
public class WXRespDTO extends BaseDTO {

    /**
     * 微信服务错误
     */
    public static Integer ERRCODE_WX = 99999;

    public static Integer CODE_OK = 0;

    public static Integer NOT_LASTEST_CODE = 40001;

    private Integer errcode;

    private String errmsg;

    public boolean responseOK(){
        return null == errcode || CODE_OK.equals(errcode);
    }

    @Override
    public String toString(){
        return super.toString();
    }

    public boolean tokenNotLatest(){
        return NOT_LASTEST_CODE.equals(errcode);
    }



}
